<template>
	<view class="re-card bg-white flex-column align-center radius-xs"
	@click="toNewsDetail">
		<view class="aui-withe-box">
					<view class="aui-flex b-line">
							<img :src="newsthumb" alt="" class="aui-ad-img">
						<view class="aui-flex-box">
							<text style="font-size: 36rpx">{{ newstitle }}</text>
						</view>
					</view>
				</view>
	</view>
</template>

<script>
	export default {
		name: 'card',
		props: {
			newscode: {
				type: String,
				default: ''
			},
			newsthumb: {
				type: String,
				default: ''
			},
      newstitle: {
        type: String,
        default: ''
      },

		},
		data() {
			return {
				
			};
		},
		methods: {
      toNewsDetail:function() {
				this.$emit('toNewsDetail');
			},
			
		}
	}
</script>

<style>
	.re-card {
		width: 100vw;
		max-height: 280rpx;
		margin-top: 30rpx;
	}

  .aui-withe-box {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 9px #d9d9d9;
    width: 95%;
    margin: 0 auto;
    overflow: hidden;
	background-position: top;
  }
 
  .aui-flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 2px;
    padding-bottom: -2px;
    position: relative;
    height: 120px;
	
  }
  .aui-ad-img {
    width: 120px;
    height: 120px;
    border-top-left-radius:5px;
    border-bottom-left-radius:5px;
  }
  .aui-flex-box {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #333;
    padding: 0px 5px 10px 10px;
	font-weight: bold;
  }

   
</style>
